package com.ys.enume.finance;


/**
 * 店铺入账单匹配类型
 */
public class TcwStoreAccountEnum {
    public enum Type {
        SUCCEED("匹配成功", 1),
        LOSE("匹配失败", 2),
        MULTITERM("多条数据请手动匹配", 3);

        public String name;
        public Integer value;

        private Type(String name, Integer value) {
            this.name = name;
            this.value = value;
        }

        public static String getName(int value) {
            for (Type e : Type.values()) {
                if (e.value == value) {
                    return e.name;
                }
            }

            return "";
        }
    }
}
